/*
 * @description: 头部描述
 * @Author: Coder
 * @Date: 2020-02-11 11:07:13
 * @LastEditors: Coder
 */
import Common from "../common";

import request from "@/utils/request";
function Project({ url, method = "GET", data, params }) {
  return request({
    url,
    method,
    data,
    params
  });
}

class ProjectApi {
  // 获取总的表单
  static allDetail = `/approval/api/v1/approFlows/allFolwInfo/`;
  // 基础设置
  static baseSet = `/approval/api/v1/approFlows`;
  // 基础设置详情
  static baseSetDetail = `/approval/api/v1/approFlows/`;
  // 查看分组列表
  static groupList = `/approval/api/v1/approFlowGroups/allGroupAndFlowByCompanySite/`;
  // 新增分组列表
  static postGroupList = `/approval/api/v1/approFlowGroups`;
  // 获取审批列表 审批流程表
  static allList = `/approval/api/v1/approFlows/allByCompany/`;
  // 查询审批分组的审批列表
  static listQuery = `/approval/api/v1/approFlows/allByGroup/`;
  // 启用某个审批流程列表
  static useListItem = `/approval/api/v1/approFlows/valid/reinstateOne/`;
  // 停用某个审批流程
  static stopUseListItem = `/approval/api/v1/approFlows/valid/leaveOne/`;
  // 修改新增审批表单
  static formSet = `/approval/api/v1/approFlowForms/publishFlowForm/`;
  // 审批表单详情
  static formSetDetail = `/approval/api/v1/approFlowForms/allByFlow/`;
  // 新增发布审批流程
  static newPublish = `/approval/api/v1/approFlowSettings/publishFlowSetting/`;
  // 审批流程第四步详情
  static publishDetail = `/approval/api/v1/approFlowSettings/findByFlowId/`;
  static allByCompanyAndUser = `/approval/api/v1/approFlows/allByCompanyAndUser/`;
  // 总的发布审批 发布审批流程(流程,表单,流程进程等)
  static allPublish = "/hr/api/v1/approval/publishFlow"; // `/approval/api/v1/approFlows/publishFlow`;
  // 获取流程信息
  static getAppDetail = `/approval/api/v1/approFlows/allFolwProcess/`;
  // 入转调离 审批流程表单表
  static formFlows = `/approval/api/v1/approFlowForms/allByType/`;
  // 删除所有审批 内测试用
  static deleteAllApp = `/approval/api/v1/approFlows/deleteAllFlowByCompanyId/`;
  // 获取 approval-审批类型表单字段
  static allTypes = `/approval/api/v1/approTypeForms/listAll`;
}
export { Project, ProjectApi, Common };
